<template>
    <view class="p_10">
        <s-goods :goodsList="list" :isReject="true" :isRemove="true" @handleToDetail="handleToDetail" @updataData="updateData"></s-goods>
        <view v-if="list.length==0">
            <s-empty ></s-empty>
        </view>            <!-- 授权弹窗 -->
        <s-auth-modal />
    </view>
</template>
<script>
import {myMixins} from "@/mixins/myMixins";
import {getAssistedUserIdApi} from "@/sheep/api";
export default {
    mixins:[myMixins],
    name: "mySend",
    data() {
        return {
            list:[],
        }
    },
    onShow() {
        this.updateData()
    },
    methods:{
        handleToDetail(item){
            uni.navigateTo({
                url: '/pages/info/index?userId='+item.userId
            })
        },
        getList(){
            getAssistedUserIdApi(this.queryObj).then(res=>{
                this.list = this.list.concat(res.rows)
                this.total = res.total
                if (this.queryObj.pageNum*this.queryObj.pageSize<this.total){
                    this.status = 'loadmore'
                }else{
                    this.status = 'nomore'
                }
                uni.stopPullDownRefresh()
            })
        },
        handleTab(e){
            this.currentIndex=e.index
            this.updateData()
        }
    }
}
</script>

<style scoped lang="scss">

</style>
